Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit dagrun duration when it fails because of a timeout #29076

Merged
merged 1 commit into from
Jan 21, 2023

Conversation

hussein-awala
Copy link
Member

closes: #29013

^ Add meaningful description above

Currently the duration of the finished dagruns are emitted in the method update_state, which is called only if the dagrun is not timeout, and we don't emit any metric when the dagrun is timeout.
This PR add the missing Stats.timing to the timeout case.

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Jan 21, 2023
@hussein-awala hussein-awala changed the title [FIX] emit dagrun duration when it fails because of a timeout Emit dagrun duration when it fails because of a timeout Jan 21, 2023
@potiuk potiuk merged commit ca9a59b into apache:main Jan 21, 2023
maggesssss pushed a commit to maggesssss/airflow that referenced this pull request Jan 21, 2023
@pierrejeambrun pierrejeambrun added the type:bug-fix Changelog: Bug Fixes label Feb 27, 2023
@pierrejeambrun pierrejeambrun added this to the Airflow 2.5.2 milestone Feb 27, 2023
pierrejeambrun pushed a commit that referenced this pull request Mar 7, 2023
pierrejeambrun pushed a commit that referenced this pull request Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Scheduler including HA (high availability) scheduler type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Metrics dagrun.duration.failed.<dag_id> not updated when the dag run failed due to timeout
3 participants